home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 7
/
Apprentice-Release7.iso
/
Environments
/
PowerFantasm™ 4.19a
/
Beginners guide
/
PPC Examples
/
PPC_Ex_1.s
next >
Wrap
Text File
|
1997-02-09
|
537b
|
14 lines
includeh ls_ppc_macros.def *the macros we need
includeh general_usage.def *some handy definitions
**Beginners guide to PowerPC assembly language.
**Example 1
**(C) Lightsoft 1996.
**Program to add two numbers.
start_up *the start_up macro as detailed above - sets up the toc etc
Xcall Debugger *call Macsbug so we can see it happen.
li r3,4 *First number is 4.
li r4,8 *8 is second number
add r5,r4,r3 *add r3 to r4 and store result in r5
tidy_up *clear up processors registers and get ready to exit
blr *back to system.